package com.settlement.system.controller;

import com.settlement.system.common.enums.ReturnStatusEnum;
import com.settlement.system.reply.ObjectDataResponse;
import com.settlement.system.service.IBaseService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import io.swagger.annotations.Api;
import com.settlement.system.model.entity.common.TblRecordAccountProject;
import jakarta.annotation.Resource;
import jakarta.servlet.http.HttpServletRequest;

import com.settlement.system.service.ITblRecordAccountProjectService;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;
import java.util.Map;


/**
 * 收退款-记账项目 前端控制器
 * @author Ximi
 * @since 2020-06-12
 */

@Api(tags = "基础配置-记账项目",description = "基础配置-记账项目")
@RestController
@RequestMapping("/record_account/project")
public class TblRecordAccountProjectController extends MergeApiExcelController<TblRecordAccountProject,Map<String,Object>> {

    @Resource
    private ITblRecordAccountProjectService tblRecordAccountProjectService;

    @Override
    public IBaseService init() {
        return tblRecordAccountProjectService;
    }

    @Override
    public Class<?> getModelClass() {
        return TblRecordAccountProject.class;
    }

    /**
     *
     * @param list
     * @return
     */
    @Override
    public ObjectDataResponse save(List<TblRecordAccountProject> list) {
        return new ObjectDataResponse(ReturnStatusEnum.NOT_CANCLE);
    }

    @Override
    public ObjectDataResponse importFile(MultipartFile file, HttpServletRequest request) {
        return new ObjectDataResponse(ReturnStatusEnum.NOT_CANCLE);
    }

    @Override
    protected ObjectDataResponse insert(TblRecordAccountProject model, HttpServletRequest request) {
        return new ObjectDataResponse(ReturnStatusEnum.NOT_CANCLE);
    }

    @Override
    protected ObjectDataResponse delete(TblRecordAccountProject model, HttpServletRequest request) {
        return new ObjectDataResponse(ReturnStatusEnum.NOT_CANCLE);
    }

    @Override
    protected ObjectDataResponse update(TblRecordAccountProject model, HttpServletRequest request) {
        return new ObjectDataResponse(ReturnStatusEnum.NOT_CANCLE);
    }


}
